﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using ClassLibrary.BLL;

namespace Web
{
    public partial class SanPhamDanhMuc : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            BLLSanPham sp = new BLLSanPham("",Convert.ToInt32(Request.QueryString["ID"]));
            CollectionPager1.PageSize = 9;
            CollectionPager1.DataSource = sp.GetByDanhMuc();
            CollectionPager1.BindToControl = DataList1;
            DataList1.DataSource = CollectionPager1.DataSourcePaged;
        }
    }
}
